Dispatcher

interface Dispatcher(source)

This interface assembles an appropriate authorization response given a request and holder's consensus and then dispatches it to the verifier

Inheritors

Functions

Link copied to clipboard
open suspend fun dispatch(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters?): DispatchOutcome

Assembles an appropriate authorization response given a request and holder's consensus and then dispatches it to the verifier.

Link copied to clipboard
abstract suspend fun encodeRedirectURI(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters? = null): DispatchOutcome.RedirectURI

Method forms a suitable authorization response, based on the request and the provided consensus, and then encodes this response to a URI. To this URI, the wallet (caller) must redirect its authorization response

Link copied to clipboard
abstract suspend fun post(request: ResolvedRequestObject, consensus: Consensus, encryptionParameters: EncryptionParameters? = null): DispatchOutcome.VerifierResponse

Method forms a suitable authorization response, based on the request and the provided consensus, then post it to the Verifier's end-point and returns his response.